<template>
  <FormItem label="尺寸">
    <Select @on-change="v=>{changeValue(v)}" :value="value">
      <Option value="default">default</Option>
      <Option value="large">large</Option>
      <Option value="small">small</Option>
    </Select>
  </FormItem>
</template>

<script>
export default {
  props: ['value'],
  data () {
    return {};
  },
  methods: {
    changeValue (value) {
      this.$emit('updateValue', {
        value,
        name: 'size'
      });
    }
  }
};
</script>
